Skip to content

Commit 559ed6d

Browse files
authored
Revert "Remove username from quoted post" (#6606)
1 parent 09ebaa3 commit 559ed6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kitsune/sumo/static/sumo/js/questions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ function initReplyToAnswer() {
311311
var contentId = $(this).data('content-id'),
312312
$content = $('#' + contentId),
313313
text = $content.find('.content-raw').text(),
314-
reply_text = `''<p>Another post [[#${contentId}|${gettext('said')}]]</p>''\n<blockquote>${text}\n</blockquote>\n\n`,
314+
user = $content.find('.display-name').text(),
315+
reply_text = `''<p>${user} [[#${contentId}|${gettext('said')}]]</p>''\n<blockquote>${text}\n</blockquote>\n\n`,
315316
$textarea = $('#id_content'),
316317
oldtext = $textarea.val();
317318

0 commit comments

Comments
 (0)